package com.example.springboot.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * Created by tang on 2018/3/7.
 */
@Controller
@RequestMapping("/testAop")
public class TestAopController {

    @ResponseBody
    @RequestMapping("/hello")
    public String hello() {
        return "helloAop";
    }


    @ResponseBody
    @RequestMapping("/error")
    public String testException() {
        return 1 / 0 + "";
    }


    @ResponseBody
    @RequestMapping("/around")
    public String testAround() {
        return "around";
    }
}
